%define commit da2e7b7a1952625f4a35cb3e9c1af060df6e9c47
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8):	Вспомогательные утилиты для разработки и сборки пакетов
Summary:	Auxiliary utilities for package development and assembly
Name:		mos-dev-tools
Version:	1.1
Release:	1.git%{commit_short}.1
License:	GPLv3
Group:		Development/Other
Url:		https://hub.mos.ru/mos/src/mos-dev-tools
Vendor:		MOS
Source0:	https://hub.mos.ru/mos/src/%{name}/-/archive/%{commit}/%{name}-%{commit}.tar.gz
Requires:	git-core
Requires:	basesystem-build
Requires:	abf
Requires:	/usr/bin/mbd
Requires:	/usr/bin/spectool
Requires:	abb
Requires:	notamock
BuildArch:	noarch

%description
The package includes utilities for typical tasks.

mos-abf-merge - is a utility designed to contain the 2021.1 branch with the 2023.1 branch and
                send it immediately to the assembly if the -b key is specified

%description -l ru_RU.UTF-8
Пакет включает утилиты для типовых задач.

mos-abf-merge - утилита предназначенная для смерживания ветки 2021.1 с веткой 2023.1 и
                отправки сразу на сборку, если указан ключ -b

%files
%{_bindir}/mos-abf-merge

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 mos-abf-merge.sh %{buildroot}%{_bindir}/mos-abf-merge
